﻿// (c) Copyright Microsoft Corporation.
// This source is subject to [###LICENSE_NAME###].
// Please see [###LICENSE_LINK###] for details.
// All other rights reserved.

using System;

namespace EnsureWeb.Controls
{
    /// <summary>
    /// Event args used when display mode changed.
    /// </summary>
    public class DisplayModeChangedEventArgs : EventArgs
    {
        /// <summary>
        /// Gets or sets the old display mode.
        /// </summary>
        public TimelineScale OldDisplayMode { get; set; }

        /// <summary>
        /// Gets or sets the new display mode.
        /// </summary>
        public TimelineScale NewDisplayMode { get; set; }

        /// <summary>
        /// Initializes a new instances of the DisplayModeChangedEventArgs class.
        /// </summary>
        /// <param name="newMode">The new mode of TimelineScale.</param>
        /// <param name="oldMode">The old mode of TimelineScale.</param>
        public DisplayModeChangedEventArgs(TimelineScale newMode, TimelineScale oldMode)
        {
            this.NewDisplayMode = newMode;
            this.OldDisplayMode = oldMode;
        }
    }
}
